package com.kunyi.web.service.log.entity.resp;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @ClassName LogOpsListResp
 * @Description log/ops/listPage返回值
 * @Author pengjunjun
 * @Date 2024/3/6 16:12
 * @Version 1.0
 **/
@Data
@Accessors(chain = true)
@ApiModel("log/ops/listPage返回值")
public class LogOpsListResp implements Serializable {

    @ApiModelProperty("id")
    private String id;

    @ApiModelProperty("编号")
    private String code;

    @ApiModelProperty("请求ip")
    private String ip;

    @ApiModelProperty("操作对象")
    private String opsObject;

    @ApiModelProperty("操作类型，字典：log.opsLog.type")
    private String opsType;

    @ApiModelProperty("接口方法")
    private String method;

    @ApiModelProperty("状态，字典：log.opsLog.status")
    private Integer status;

    @ApiModelProperty("耗时 ms")
    private Integer consumeTime;

    @ApiModelProperty("来源，字典：log.opsLog.source")
    private Integer source;

    @ApiModelProperty("添加人")
    private String createUser;

    @ApiModelProperty("添加时间")
    private LocalDateTime createTime;
}
